package com.sxjh.entity.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
public class PlanedTaskListResult implements Serializable {

    @ApiModelProperty(value = "派车单id")
    private Integer id;

    @ApiModelProperty(value = "计划单名称")
    private String title;

    @ApiModelProperty(value = "派车单号")
    private String orderNo;

    @ApiModelProperty(value = "计划单ID")
    private Integer plannedOrderId;

    @ApiModelProperty(value = "计划单no")
    private String plannedOrderNo;

    @ApiModelProperty(value = "车号ID")
    private Integer wagonNumberId;

    @ApiModelProperty(value = "车号")
    private String vehNumber;

    @ApiModelProperty(value = "承运单位")
    private String unitName;

    @ApiModelProperty(value = "物料ID")
    private Integer materialId;

    @ApiModelProperty(value = "物料名称")
    private String materialName;

    @ApiModelProperty(value = "装货点ID")
    private Integer loadId;

    @ApiModelProperty(value = "装货点名称")
    private String loadName;

    @ApiModelProperty("装货地是否需要拍照1:否,-1:是")
    private Integer upPhotoFlag;

    @ApiModelProperty(value = "卸货点ID")
    private Integer unloadId;

    @ApiModelProperty(value = "卸货点名称")
    private String unloadName;

    @ApiModelProperty("卸货地是否需要拍照1:否,-1:是")
    private Integer downPhotoFlag;

    @ApiModelProperty("卸货地是否需要确认1:否,-1:是")
    private Integer downConfirmFlag;

    @ApiModelProperty(value = "当前节点")
    private Integer currNode;

    @ApiModelProperty(value = "状态:1未执行,2执行中,3已完成,4已作废")
    private Integer status;

    @ApiModelProperty(value = "派车单开始日期")
    @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
    private LocalDateTime startDate;

    @ApiModelProperty(value = "派车单结束日期")
    @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
    private LocalDateTime endDate;

}
